home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Floppyshop 2
/
Floppyshop - 2.zip
/
Floppyshop - 2.iso
/
art&graf.ix
/
art-0039
/
source
/
dcprint.mod
< prev
next >
Wrap
Text File
|
1997-04-16
|
3KB
|
101 lines
IMPLEMENTATION MODULE DCPrint;
(* This program will PRINT pictures.
*)
(*--------------------------------------------------------------------*)
(* This is version 1.00 April 1987 L.G. Miller. *)
(*--------------------------------------------------------------------*)
(* Pressing the left mouse button whilst printing will request an
ABORT of the print.
*)
(* IMPORT Trace; *)
FROM SYSTEM IMPORT ADDRESS, ADR;
FROM Graphics IMPORT graf_mouse;
IMPORT Forms;
IMPORT DCPrnt09;
IMPORT DCPrnt24;
IMPORT DCPrtCnv;
FROM ManyWindows IMPORT VDIHandle, ShowAlert;
FROM Strings IMPORT String, Assign, Concat;
FROM DCGlobal IMPORT
(* CONST *)
HiResMaxX, (* = 639; *)
HiResMaxY, (* = 399; *)
HiResNoPlanes, (* = 1; *)
(* TYPE *)
PrinterTypes,
PictureImage,
PrintImage,
HiResScreen,
DegasPicture;
(* ---------------------------------------------------------- *)
CONST
ESC = CHR(1BH);
Arrow = 0;
HourGlass = 2;
PROCEDURE PrintHiResPicture ( VAR PictureDetails : PictureImage;
VAR PrintDetails : PrintImage;
VAR Picture : HiResScreen );
VAR dumc : CARDINAL;
BEGIN
dumc := graf_mouse(HourGlass, NIL);
IF ( DCPrtCnv.QueryPrinterToUse() = EpsonLQ80 ) THEN
IF PrintDetails.QueryLandscapePrint THEN
DCPrnt24.PrintHiResPicture24L( PictureDetails,
PrintDetails,
Picture );
ELSE
DCPrnt24.PrintHiResPicture24P( PictureDetails,
PrintDetails,
Picture );
END;
ELSE
IF PrintDetails.QueryLandscapePrint THEN
DCPrnt09.PrintHiResPicture09L( PictureDetails,
PrintDetails,
Picture );
ELSE
DCPrnt09.PrintHiResPicture09P( PictureDetails,
PrintDetails,
Picture );
END;
END;
dumc := graf_mouse(Arrow, NIL);
END PrintHiResPicture;
PROCEDURE SetPrinterToUse( ptype : PrinterTypes );
BEGIN
DCPrtCnv.SetPrinterToUse(ptype);
END SetPrinterToUse;
BEGIN
SetPrinterToUse(EpsonLQ80);
END DCPrint.